import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.net.*;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author abdala
 */
public class CommunicaSystem {
    /**
     *
     * @param args
     */
    public static void main(String [] args) throws IOException{
        try {
            
            FileReader file2Read=new FileReader("A2B.txt");
            FileWriter file2Snd = new FileWriter("B2A.txt");
            FileReader file2Read2=new FileReader("B2A.txt");
            FileWriter file2Snd2 = new FileWriter("A2B.txt");
            BufferedReader br = new BufferedReader(file2Read);
            BufferedReader br2 = new BufferedReader(file2Read2);
            BufferedWriter bw = new BufferedWriter(file2Snd);
            BufferedWriter bw2 = new BufferedWriter(file2Snd2);
            //Communica com = new Communica(bw, br);  
            //Communica com2 = new Communica(bw2, br2);
             ComunicaTCPServer Srv = new ComunicaTCPServer(11991);
            ComunicaTCPClient Cli = new ComunicaTCPClient(InetAddress.getLocalHost(),11991);
            
    }   catch (FileNotFoundException ex) {
            Logger.getLogger(CommunicaSystem.class.getName()).log(Level.SEVERE, null, ex);
    }
            
}
}
